# -*- coding: utf-8 -*-
# @Author : HaleShi
# @Time : 2023-06-06
# @File : 4_sign_confirm.py

import hashlib

data = "aid=444433578&auto_play=0&build=6240300&cid=1154029727&did=NgBjUWgOPFlqD2kPcw9z&epid=&from_spmid=creation.hot-tab.0.0&ftime=1685950311&lv=0&mid=0&mobi_app=android&part=1&sid=0&spmid=main.ugc-video-detail.0.0&stime=1686035478&sub_type=0&type=3"

salt = "9cafa6466a028bfb"   #jadx中反编译查看
obj = hashlib.sha256()
obj.update(data.encode('utf-8'))
obj.update(salt.encode('utf-8'))

res = obj.hexdigest()
print(res)
# bfbf81b921e4a4fc9ae14bcd2ed12c12eff7ff32a64fa76b63a0fe660cc9fc5a
# bfbf81b921e4a4fc9ae14bcd2ed12c12eff7ff32a64fa76b63a0fe660cc9fc5a